
const path = require('path');

var url = './text.txt';
var url2 = './image/1.jpg';
var url3 = path.join(url, url2);
console.log(url3);

console.log(path.resolve(url));
console.log(path.extname(url));
console.log(path.basename(url));


console.log(__dirname); //获取当前文件的绝对路径
